package com.tenement.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.sql.Timestamp;
import java.util.List;


@AllArgsConstructor
@NoArgsConstructor
@Data
@Accessors(chain = true)
public class ChatModel {
    private Long userId;

    private String msg;

    private Timestamp sendTime;

    private Long target;

    // 0表示文字,1表示图片,2表示文件,3表示系统,4表活跃
    private Short type;

    private Integer cmd;

    private List<User> users;
}
